﻿using System;
using System.Collections.Generic;
using System.Text;
using DotNet.Data;
namespace DotNet.Business
{
	public class tab_newBll
	{
		tab_newDal tDal=new tab_newDal();

		#region 是否存在该记录
		/// <summary>
		/// 是否存在该记录
		/// </summary>
		public bool Exists(int nid)
		{
			return tDal.Exists(nid);
		}
		#endregion

		#region 获得数据列表
		/// <summary>
		/// 获得数据列表
		/// </summary>
		public IList<tab_new> GetModel()
		{
			return tDal.GetModel();
		}
		#endregion

		#region 根据标识列获得数据实体
		/// <summary>
		/// 根据标识列获得数据实体
		/// </summary>
		/// <param name="nid">标识列</param>
		/// <returns></returns>
		public tab_new GetModel(int nid)
		{
			return tDal.GetModel(nid);
		}
		#endregion

		#region 修改信息
		/// <summary>
		/// 修改信息
		/// </summary>
		/// <param name="tab_new">实体</param>
		/// <returns></returns>
		public bool Update(tab_new tab_new)
		{
			 return tDal.Update(tab_new);
		}
		#endregion

		#region 删除信息
		/// <summary>
		/// 删除信息
		/// </summary>
		/// <param name="nid">标识列</param>
		/// <returns></returns>
		public bool Delete(int nid)
		{
			 return tDal.Delete(nid);
		}
		#endregion

		#region 添加信息
		/// <summary>
		/// 添加信息
		/// </summary>
		/// <param name="tab_new">实体</param>
		/// <returns></returns>
		public bool Insert(tab_new tab_new)
		{
			 return tDal.Insert(tab_new);
		}
		#endregion
	}
}
